home *** CD-ROM | disk | FTP | other *** search
/ Pearl Top 100 / Pearl Top 100.iso / archiv / sw3677.exe / B21_1BBS.1 / JM_ERROR.H < prev    next >
C/C++ Source or Header  |  1994-07-01  |  10KB  |  270 lines

  1. #ifndef _JM_ERROR_H_
  2. #define _JM_ERROR_H_
  3.  
  4.  
  5.  
  6. enum ERROR_Units {
  7.  
  8. JM_IO_ERROR=0x01,                      // JAM Units
  9. JM_TP_ERROR,
  10. JM_AN_ERROR,
  11.  
  12. D3_MAIN_ERROR=0x81,                // ID Units
  13. D3_STATE_ERROR,
  14. D3_ACT1_ERROR,
  15. D3_ACT2_ERROR,
  16. D3_GAME_ERROR,
  17. D3_AGENT_ERROR,
  18. D3_SCALE_ERROR,
  19. ID_US1_ERROR,
  20. D3_PLAY_ERROR,
  21. D3_DEBUG_ERROR,
  22. ID_IN_ERROR,
  23. ID_VL_ERROR,
  24. ID_VH_ERROR,
  25. ID_CA_ERROR,
  26. ID_PM_ERROR,
  27. ID_MM_ERROR,
  28. ID_SD_ERROR,
  29. DRAW2_ERROR,
  30. MENU_ERROR,         
  31. };
  32.  
  33.  
  34. enum ERROR_Msgs {
  35.  
  36.  
  37. // UNIT: JM_IO
  38. //
  39. IO_LOADFILE_NO_LZW=0x01,          // No code for LZW compression.
  40. IO_LOADFILE_UNKNOWN,                 // Unknown compression type.
  41. IO_COPYFILE_OPEN_SRC,            // IO_CopyFile(): Error opening source file.
  42. IO_COPYFILE_OPEN_DEST,            // IO_COpyFile(): Error opening destination file.
  43.  
  44.  
  45. // UNIT: JM_TP
  46. //
  47. TP_PRESENTER_EP_RECURSE=0x01,    // Use of ^EP when recursing.
  48. TP_PRESENTER_LONG_TEXT,          // String too long to print.
  49. TP_CACHEPAGE_ANIM_OF,            // Too many anims on one page.
  50. TP_INITSCRIPT_PAGES_OF,          // Too many pages in presenter.
  51. TP_DISPLAY_STR_NUM_BAD,            // String number exceeds max array size.
  52. TP_CANT_FIND_XX_TERMINATOR,    // Can't find the ^XX doc terminator string.
  53.  
  54. // UNIT: JM_AN
  55. //
  56. AN_BAD_ANIM_FILE=0x01,            // Animation file is corrupt or truncated.
  57. HANDLEPAGE_BAD_CODE,                // Unrecognized anim code.
  58. AN_SHOW_FRAME_NULL,                // MOVIE_ShowFrame() was passed a NULL ptr
  59.  
  60.  
  61. // UNIT: 3D_MAIN
  62. //
  63. READINFO_BAD_DECOMP=0x01,         // Bad decompression during game load.
  64. WRITEINFO_BIGGER_BUF,            // Save game compression buffer too small.
  65. SAVELEVEL_DISKERR,              // Disk error while changing levels.
  66. CHECKDISK_GDFREE,                  // Error in _dos_getdiskfree call.
  67. INITACCESS_NOFILE,                // Error loading 'ACCESS.xxx' file.
  68. PREDEMO_NOJAM,                        // JAM animation (IANIM.BSx) does not exist.
  69. INITPLAYTEMP_OPEN_ERR,            // InitPlaytemp(): Error opening PLAYTEMP file.
  70. CHECK_FILENAME_TOO_LONG,        // CheckValidity(): Filename is too long.
  71.  
  72.  
  73. // UNIT: 3D_STATE
  74. //
  75. TRYWALK_BAD_DIR=0x01,            // Illegal direction passed.
  76. MOVEOBJ_BAD_DIR,                   // Illegal direction passed.
  77. SIGHTPLAYER_IN_ATKMODE,          // Actor is in ATTACKMODE.
  78.  
  79.  
  80. // UNIT: 3D_ACT1
  81. //
  82. SPAWNSTATIC_TOO_MANY=0x01,       // Too many static objects.
  83. PLACEITEMTYPE_NO_TYPE,           // Couldn't find type.
  84. SPAWNDOOR_TOO_MANY,              // Too many doors in level.
  85. SPAWNCONCESSION_TOO_MANY,       // Too many concession machines in level.
  86. UNRECOGNIZED_CON_CODE,          // Concession Code (Upper Byte) is unrecognized (Hint Or Food PAL!)
  87. INVALID_CACHE_MSG_NUM,            // Invalid 'Cached Message' number
  88. HINT_BUFFER_OVERFLOW,            // Cached Hint Message is to Long for allocated space
  89. CACHEMSG_TOO_MANY,                // Too many messages in current level.
  90. LINKAREA_BAD_LINK,                // Invalid linkable area.
  91. CHECKLINKED_BAD_LINK,            // Linked door is linked to a non-door.
  92. SPAWNCON_CACHE_MSG_OVERFLOW,    // Too many 'cached msgs' loaded. (CONCESSIONS)
  93. TRANSFORM_AREA1_OUT_OF_RANGE,    // Area1 out of table range.
  94. TRANSFORM_AREA2_OUT_OF_RANGE,    // Area2 out of table range.
  95. SPAWNSTATIC_ON_WALL,                // Static spawned on a wall.
  96.  
  97. // UNIT: 3D_ACT2
  98. //
  99. T_PATH_HIT_WALL=0x01,            // Actor walked out of map.
  100. TOGGLE_BARRIER_NULL,                // ToggleBarrier() was passed a NULL ptr!
  101. TOGGLE_NON_BARRIER,                // ToggleBarrier() was passed a non-barrier object pointer! Oh...Gubs!
  102. BAD_BARRIER_THINK,                // barrier is ON but thinking using T_BarrierTransistion!
  103. ACTOR_ON_WALL,                        // An actor has been spawned on an invalid area number
  104.  
  105. // UNIT: 3D_GAME
  106. //
  107. SETUPGAME_BAD_MAP_SIZE=0x01,    // Map not 64 x 64.
  108. SETUPGAME_MAX_EA_WALLS,            // Too many Electro-Alien walls in level.
  109. SETUPGAME_MAX_GOLDIE_SPAWNS,    // Too many Dr. Goldfire Spawn sites in level.
  110. SCANINFO_CACHE_MSG_OVERFLOW,    // Too many 'cached msgs' loaded. (INFORMANTS)
  111. SCANINFO_INVALID_ACTOR,            // Invalid actor in shareware version!
  112. NO_SPACE_ANIM,                        // SPACE Animation file (SANIM.BSx) does not exist.
  113. NO_GROUND_ANIM,                    // GROUND Animation file (GANIM.BSx) does not exists.
  114. CEILING_TILE_OUT_OF_RANGE,        // CEILING TILE/TEXTURE IS OUT OF RANGE
  115. FLOOR_TILE_OUT_OF_RANGE,        // FLOOR TILE/TEXTURE IS OUT OF RANGE
  116.  
  117. // UNIT: 3D_AGENT
  118. //
  119. INTERROGATE_LONG_MSG=0x01,        // Interrogation message too long.
  120. BAD_TERMINAL_MSG_NUM,            // Bad Cached Terminal Message number
  121. SWITCH_TABLE_OVERFLOW,            // Too many DIFFERENT(coords) barriers hooked up to switches    
  122. UPDATE_SWITCH_BAD_LEVEL,        // Bad level number passed to UpdateBarrierTable
  123. GETAREANUMBER_ON_WALL,            // Can't GetAreaNumber() of object on wall!
  124.  
  125. // UNIT: 3D_SCALE
  126. //
  127. BADSCALE_ERROR=0x01,                // Bad scale called.
  128.  
  129.  
  130. // UNIT: ID_US_1
  131. //
  132. US_CPRINTLINE_WIDTH=0x01,        // String exceeds width.
  133.  
  134.  
  135. // UNIT: 3D_PLAY
  136. //
  137. POLLCONTROLS_DEMO_OV=0x01,        // Demo buffer overflowed.
  138. GETNEWACTOR_NO_FREE_SPOTS,        // No free spots in objlist.
  139. REMOVEOBJ_REMOVED_PLAYER,        // Tried to remove the player.
  140.  
  141. // UNIT: 3D_DEBUG
  142. //
  143.  
  144. // UNIT: ID_IN
  145. //
  146. IN_READCONTROL_PLAY_EXC=0x01,    // Demo playback exceeded.
  147. IN_READCONTROL_BUF_OV,           // Demo buffer overflow.
  148.  
  149.  
  150. // UNIT: ID_VL
  151. //
  152. VL_MUNGEPIC_NO_DIV_FOUR=0x01,    // Not divisible by 4.
  153.  
  154. // UNIT: ID_VH
  155. //
  156.  
  157. // UNIT: ID_CA
  158. //
  159. CA_SETUPAUDIO_CANT_OPEN=0x01,    // Can't open audio file.
  160. CA_UPLEVEL_PAST_MAX,               // Up past level 7.
  161. CA_DOWNLEVEL_PAST_MIN,           // Down past level 0.
  162.  
  163.  
  164. // UNIT: ID_PM
  165. //
  166. PML_MAPEMS_MAPPING_FAIL=0x01,    // Page mapping failed.
  167. PML_SHUTDOWNEMS_FREE,           // Error freeing EMS.
  168. PML_XMSCOPY_ZERO_ADRS,           // Zero address.
  169. PML_XMSCOPY_COPY_ERROR,            // Error on copy.
  170. PML_SHUTDOWNXMS_FREE,            // Error freeing XMS.
  171. PML_STARTUPMAINMEM_LOW,             // Not enough main memory.
  172. PML_READFROMFILE_NULL,          // Null pointer.
  173. PML_READFROMFILE_ZERO,          // Zero offset.
  174. PML_READFROMFILE_SEEK,            // Seek failed.
  175. PML_READFROMFILE_READ,           // Read failed.
  176. PML_OPENPAGEFILE_OPEN,           // Unable to open page file.
  177. PML_OPENPAGEFILE_OFF,            // Offset read failed.
  178. PML_OPENPAGEFILE_LEN,            // Length read failed.
  179. PML_GETEMSADDRESS_FIND,            // EMS find failed.
  180. PML_GIVELRUPAGE_SEARCH,            // LRU search failed.
  181. PML_PUTPAGEINXMS_NO_LRU,         // No XMS LRU.
  182. PML_TRANSFERPAGE_IDENT,        // Identity replacement.
  183. PML_TRANSFERPAGE_KILL,            // Killing locked page.
  184. PML_TRANSFERPAGE_REUSE,            // Reusing non-existent page.
  185. PML_TRANSFERPAGE_ZERO,             // Zero replacement.
  186. PML_GETPAGEBUFFER_LIED,          // MainPagesAvail lied.
  187. PML_GETPAGEBUFFER_PURGE,        // Purged main block.
  188. PML_GETPAGEBUFFER_SEARC,        // Search failed.
  189. PML_GETPAGEFROMXMS_SEG,            // Non segment pointer.
  190. PM_GETPAGE_BAD_PAGE,                // Invalid page request.
  191. PM_GETPAGE_SPARSE_PAGE,            // Tried to load a sparse page.
  192. PM_SETPAGELOCK_NON_SND,            // Locking/unlocking non-sound page.
  193. PM_PRELOAD_PAGES_OV,               // More pages than chunks in file.
  194. PM_PRELOAD_XMS_FAIL,               // XMS buffer failed.
  195. PM_PRELOAD_EXCEED,                 // Exceeded XMS pages.
  196. PM_PRELOAD_TOO_LONG,               // Page too long.
  197. PM_STARTUP_NO_MAIN_EMS,             // No main or EMS.
  198.  
  199.  
  200. // UNIT: ID_MM
  201. //
  202. MML_USESPACE_TWO_BLOCKS=0x01,    // Segment spans two blocks.
  203. MML_CLEARBLOCK_NO_PURGE_BLKS,    // No purgable blocks.
  204. MM_GETPTR_OUT_OF_MEMORY,        // Out of memory.
  205. MM_FREEPTR_BLOCK_NOT_FOUND,    // Block not found.
  206. MM_SETPURGE_BLOCK_NOT_FOUND,    // Block not found.
  207. MM_SETLOCK_BLOCK_NOT_FOUND,    // Block not found.
  208. MM_SHOWMEMORY_BLK_CORRUPT,        // Memory block order corrupted.
  209. MM_DUMPDATA_FILE_ERROR,            // Couldn't open MMDUMP.TXT.
  210. MM_DUMPDATA_FILE_CREATED,        // MMDUMP.TXT created.
  211. MM_GETMEM_WITH_PAGEMANAGER,    // MM_GetPtr() was called while PageManager was installed
  212.  
  213. // UNIT: ID_SD
  214. //
  215. SD_PLAYSOUND_ZERO_LEN=0x01,    // Zero length sound.
  216. SD_PLAYSOUND_PRI_NO_SOUND,        // Priority without a sound.
  217. SD_PLAYSOUND_UNCACHED,            // Uncached sound.
  218. SD_STARTUP_BAD_DMA,                // Unsupported DMA value in BLASTER.
  219. SD_STARTUP_BAD_INTERRUPT,        // Unsupported interrupt value in BLASTER.
  220. SD_STARTUP_BAD_ADDRESS,            // Unsupported address value in BLASTER.
  221. SDL_ALPLAYSOUND_BAD_INST,        // Bad instrument.
  222. SD_PLAYDIGITIZED_BAD_SOUND,    // Bad sound number.
  223. SD_SETPOSITION_BAD_POSITION,    // Illegal position.
  224. SDL_STARTSB_BAD_INTERRUPT,        // Illegal or unsupported interrupt number for SoundBlaster.
  225. SDL_SBSETDMA_BAD_DMA,            // Invalid SoundBlaster DMA channel.
  226.  
  227.  
  228. // UNIT: 3D_DRAW2
  229. //
  230. NULL_FUNC_PTR_PASSED=0x01,            // Null Function Pointer passed - MapRowPtr was NOT initalized!!!
  231.  
  232. // UNIT: 3D_MENU
  233. //
  234. CACHE_MESSAGE_NO_END_MARKER,  // A cached message was NOT terminated with "^XX"
  235. };
  236.  
  237.  
  238. // Use ERROR() when passing "Unit:  Msg:" info -- this keeps Quit()
  239. // flexible and optimizes _DATA usage.
  240. //
  241. // Also, other xxx_ERROR macros are included.
  242. //
  243. extern char QuitMsg[];
  244. #define ERROR(Unit,Error)        Quit(QuitMsg,Unit,Error)
  245.  
  246. #define IO_ERROR(Error)            ERROR(JM_IO_ERROR,Error)
  247. #define TP_ERROR(Error)            ERROR(JM_TP_ERROR,Error)
  248. #define AN_ERROR(Error)            ERROR(JM_AN_ERROR,Error)
  249.  
  250. #define MAIN_ERROR(Error)        ERROR(D3_MAIN_ERROR,Error)
  251. #define STATE_ERROR(Error)        ERROR(D3_STATE_ERROR,Error)
  252. #define DEBUG_ERROR(Error)        ERROR(D3_DEBUG_ERROR,Error)
  253. #define PLAY_ERROR(Error)        ERROR(D3_PLAY_ERROR,Error)
  254. #define ACT1_ERROR(Error)        ERROR(D3_ACT1_ERROR,Error)
  255. #define ACT2_ERROR(Error)        ERROR(D3_ACT2_ERROR,Error)
  256. #define GAME_ERROR(Error)        ERROR(D3_GAME_ERROR,Error)
  257. #define AGENT_ERROR(Error)        ERROR(D3_AGENT_ERROR,Error)
  258. #define SCALE_ERROR(Error)        ERROR(D3_SCALE_ERROR,Error)
  259. #define US1_ERROR(Error)        ERROR(ID_US1_ERROR,Error)
  260. #define IN_ERROR(Error)            ERROR(ID_IN_ERROR,Error)
  261. #define CA_ERROR(Error)            ERROR(ID_CA_ERROR,Error)
  262. #define PM_ERROR(Error)            ERROR(ID_PM_ERROR,Error)
  263. #define VH_ERROR(Error)            ERROR(ID_VH_ERROR,Error)
  264. #define SD_ERROR(Error)            ERROR(ID_SD_ERROR,Error)
  265. #define MM_ERROR(Error)            ERROR(ID_MM_ERROR,Error)
  266. #define DRAW2_ERROR(Error)        ERROR(DRAW2_ERROR,Error)
  267. #define MENU_ERROR(Error)        ERROR(MENU_ERROR,Error)
  268.  
  269. #endif
  270.